#include "stdafx.h"

#include "FontManager.h"

namespace ETM
{
	namespace Resources
	{
		FontManager FM;

		sf::Font* FontManager::Load(const std::string& id)
		{
			sf::Font* font = new sf::Font();

			if(!font->LoadFromFile(id))
			{
				std::cout << "FontManager failed to load: " << id << std::endl;
				delete font;
				font = NULL;
			}

			return font;
		}
	}
}